import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/admin/users',
    method: 'get',
    params: query
  })
}

export function show(id) {
  return request({
    url: '/admin/users/' + id,
    method: 'get'
  })
}

export function userList(query) {
  return request({
    url: '/admin/users/userslist',
    method: 'get',
    params: query
  })
}

export function checkPass(id, data) {
  return request({
    url: '/admin/users/' + id + '/check',
    method: 'post',
    data: data
  })
}
